<template>
    <router-link v-bind="$attrs" :to="fullTo">
        <slot />
    </router-link>
</template>
<script setup>
import { computed, inject } from 'vue';
import { pluginBase } from '../router'

const props = defineProps({ to: String });
const pluginRouter = inject('pluginRouter', { base:  pluginBase });
const fullTo = computed(() => {
    return pluginRouter.base + props.to
});
</script>